package com.cykj.mapper;

import com.cykj.pojo2.CyOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {
    int generateOrder(@Param("goodId") String goodId, @Param("userId") String userId, @Param("payState") String payState,
                      @Param("buyCount") String buyCount, @Param("isTimeOut") String isTimeOut);
    int addOrder(@Param("cyOrder") CyOrder cyOrder);
    CyOrder getOrderById(@Param("orderId") long orderId);
    int updateOrder(@Param("id") long id,@Param("status") long status);

}
